This question is almost identical to a previous question (Keyboard Layout library to find Neighboring Keys given an input key). However, that question is 5 years old.
Is there a library I can import that will tell me, for a given key k, which keys neighbor k? I know I can manually create this mapping, but it would be great if something more robust was already out there.
Per Alex's comment, this is for a US English QWERTY keyboard.