Keyboard event handlers has been rewritten