The general idea is to use +/- aliases (which trigger when a key is pressed and released respectively.)
Very simply you can do this:
alias +mod "bind f11 say shift"
alias -mod "bind f11 say normal"
bind shift +mod
although in advanced configs you might want to use a few intermediary aliases like
alias f11_normal "say normal" // Bind for when you're not holding shift
alias f11_shift "say shift" // Bind for when you're holding shift
alias f11_modded f11_normal // Default if shift never pressed
alias +mod "alias f11_modded f11_shift" // Shift key down
alias -mod "alias f11_modded f11_normal" // Shift key up
bind shift +mod // You can bind other things to +mod if you want to have like ctrl+f11
bind f11 f11_modded // f11 will now do whatever f11_modded is aliased to by +/-mod
Thanks for this but im sooooo confused
i want to have left shift, keypad 1 for suicide ,how would i do that?
I keep pressing the suicide key by accident
Thanks ctrlfrk for your help