Update floatingDecimal.js

Changes to key press handling now allows changes to be made where the cursor is located or to replace selected elements.