Fixed #7
Fixed home and end keys not working