Prevent default when user presses enter in command input