Use down for handler functions, add key handler, refactor keys