You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/spotify-player/spotify_player/src/event
    
    the code of the file until where you have to start completion: use crate::{
    command::{self, Command},
    key::{Key, KeySequence},
    state::*,
    ui::single_line_input::LineInput,
    utils::new_list_state,
};

#[cfg(feature = "lyric-finder")]
use crate::utils::map_join;
#[cfg(feature = "clipboard")]
use anyhow::Context as _;
use anyhow::Result;
#[cfg(feature = "clipboard")]
use copypasta::{ClipboardContext, ClipboardProvid
    
pub fn start_event_handler(state: SharedState, client_pub: flume::Sender<ClientRequest>) {
    while let Ok(event) = crossterm::event::read() {
        let _enter = tracing::info_span!("terminal_event", event = ?event).entered();
        if let Err(err) = match event {
            crossterm::event::Event::Mouse(event) => handle_mouse_event(event, &client_pub, &state),
            crossterm::event::Event::Key(event) => {
                if event.kind == crossterm::event::KeyEventKind::Press {
                    // only handle key press event to avoid handling a key event multiple times
                    // context:
                    // - https://github.com/crossterm-rs/crossterm/issues/752
                    // - https://github.com/aome510/spotify-player/issues/136
                    handle_key_event(event, &client_pub, &state)
                } else {
                    Ok(())
                }
            }
            _ => Ok(()),
        } {
            tracing::error!("Failed to handle event: {err:#}");
        }
    }
}