add key press
remove console.log
fix bug in scripts