adds keypress functionality on 'enter' 

 I also took out some random console.logs that were left and a debugger line.