Fix: event.keyCode or event.charCode is used to examine pressed key

In FF one is not able to type in a spinedit field. That's because keyCode is not populated. This fix assigns either event.keyCode or event.charCode to the pressedKey variable to ensure the correct behavior with different browsers.