Add ESC and ENTER keys support