Thanks! I was trying to get this to work with keymaps but I didn't set it up correctly.