moving alpha creation to update function only when appropriate key is pressed