added example class Mode; fixed some keys in keymap