How to combine three keys as a hotkey with Autohotkey?

How about this?

Capslock & k:: 
GetKeyState, state, Alt
if state = D
SendInput !{Up}
Return