Removing debug mode and fixing esc key