No, sorry, this isn't possible to do. When you bind a key it's a direct binding. Meaning, the button follows exactly what the key is doing. The only exception is the scroll wheel where when you scroll up or down XIM will hold the mapped button down for a little bit.