removed console.log keys
only preventDefault if spacebar
bugfix: dont capture keys if on inputs.