This needs to be done in  processProperties and propertyChanged, otherwise it will be overwritten in many cases. Please look at handleKeyboard()