fn ld_k_into_vx(&mut self, reg: u8)
	{
		loop {
			let state = self.input.get_key_states();
			for (index, value) in state.iter().enumerate()
			{
				if *value
				{
					self.v[reg as usize] = index as u8;
					return;
				}
			}
		}
	}
/// Wait for a key press, store the value of the key in Vreg.
Wait for a key press, store the value of the key in Vreg.
Wait for a key press store the value of the key in Vreg .
fn ld_k_into_vx(&mut self, reg: u8)
	{
		loop {
			let state = self.input.get_key_states();
			for (index, value) in state.iter().enumerate()
			{
				if *value
				{
					self.v[reg as usize] = index as u8;
					return;
				}
			}
		}
	}
fn ld_k_into_vx ( & mut self , reg : u8 ) { loop { let state = self . input . get_key_states ( ) ; for ( index , value ) in state . iter ( ) . enumerate ( ) { if * value { self . v [ reg as usize ] = index as u8 ; return ; } } } }
Wait for a key press, store the value of the key in Vreg.
Wait for a key press store the value of the key in Vreg .
&mut self
reg
u8