Add listener for keydown event to control panel