Added handling arrows and delete in console.