Added methods: 'onKeyUp' and 'onKeyDown'