Input: add getkeycode and setkeycode methods