You ask:
When trying this I get: "cannot find symbol - method getInputMap(int)" Did I need to declare it somewhere?
This method must be called on an object that derives from JComponent or one of its children such as a JPanel. This error message means that you're making this call inside of a class that does not extend JComponent or one of its children such as a JPanel. A possible solution is to call the method on the object that you want to attach the bindings to, on your JPanel object.
Speaking of links, here are some of mine: link, link, link, link, link, link,...