Move the binding of the keys into the bindelementactions function