Parse keypress callback function

This let us define keyboard shortcuts exactly as in the UI-Utils docs : mousetrap-keyup="{'right': 'goNext()', 'left': 'goPrev()'}"