add loop to handle multiple key and event binding