Key press lua help pless


Code removed

I was wondering how make it to when u press crtl and r the menu opens but it now only opens on r.

[lua]local menu_base = nil
function SWEP:Think()

if CLIENT then

	if input.IsKeyDown( KEY_LCONTROL ) and input.IsKeyDown( KEY_R ) and !IsValid( menu_base ) then

		// The IsValid checks if the menu exists so that this won't run every frame you hold
		// both keys
		// Create menu base
		menu_base = vgui.Create( "DFrame" )
		// etc....


	end

end

end[/lua]

Ty u work like a charm