Trying to create a part of my program to allow users to keybind whatever button they would like and might be going at it the wrong way. Basically what I have is textbox that will allow the user to enter a number for the hotkey lets say "118" which is F7. I would like it to go like it to replace Keys.F7 to whatever they have.
Code
Select Case e.KeyCode
Case Keys.F7 // I have tried making this an integer that took a value but //it did not work
MessageBox.Show("Testing")
Case Keys.F8
MessageBox.Show("Testing2")
End Select

![[Image: ZspE9dA.gif]](https://i.imgur.com/ZspE9dA.gif)
![[Image: cydIuub.png]](https://i.imgur.com/cydIuub.png)
![[Image: bqeIWKJ.gif]](https://i.imgur.com/bqeIWKJ.gif)
