Issue #482 - Added basic support for Home and End buttons (go to beginning/end of current line). Fixed the problem with divide/multiplication being needed at odd places.