Fixed the behaviour of Delete key