/// @description steps

if keyboard_check_pressed(vk_left)
{
	card_change = -1;
	show_debug_message("moving left");
}

if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(ord("L")))
{
	card_change = 1;
	show_debug_message("moving right");
}


if (card_change != 0)
{
	// Deselect old card
	card_hand[selected_card].selected = false;
	
	// Select new card
	selected_card = array_loop(card_hand, selected_card, card_change);
	card_hand[selected_card].selected = true;
	show_debug_message("card selected = " + string(card_selected));
	
	card_change = 0;
}