added home, enter and end key functionality