[FIX] Unlock: Register esc keyup as cancel() event (RT-2762)

Related: It appears that src/js/directives/events.js is never used for any keypress event handling. Should this file be removed?