refactoring, remove 'enable_keycodes'